class Animal:
    def __init__(self,name,age):
        self.name = name
        self.age = age

    def make_sound(self):
        pass

# 定义小鸭类子类
class Dark(Animal):
    def __init__(self,name,age):
        super().__init__(name,age)

    def make_sound(self):
        print(f"{self.name}发出呱呱的叫声")


# 定义小狗类子类
class Dog(Animal):
    def __init__(self,name,age):
        super().__init__(name,age)

    def make_sound(self):
        print(f"{self.name}发出汪汪的叫声")


# 定义小猫类子类
class Cat(Animal):
    def __init__(self,name,age):
        super().__init__(name,age)

    def make_sound(self):
        print(f"{self.name}发出喵喵的叫声")

# 创建动物对象并调用
dark = Dark("小鸭",4)
dog = Dog("小狗",5)
cat = Cat("小猫",6)

dark.make_sound()
dog.make_sound()
cat.make_sound()